package training.bms.presentation;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import training.bms.business.Blog;
import training.bms.business.BlogController;
import training.bms.business.BlogSearchOptions;
import training.framework.business.AbstractEntityController;
import training.framework.presentation.AbstractSearchEntity;

@ManagedBean
@SessionScoped
public class SearchBlog extends AbstractSearchEntity<Integer, Blog, BlogSearchOptions, BlogPanel> {

	private BlogController controller;
	private static final int MAX_RESULTS = 10;
	
	public SearchBlog(){
		super(BlogSearchOptions.class,"searchBlog", "Blog not found",MAX_RESULTS);
		this.controller = new BlogController();
	}

	@Override
	protected AbstractEntityController<Integer, Blog, BlogSearchOptions> getController() {
		return controller;
	}
	
}
